<template>
	<view>
		<!-- 选择供货商 -->
		<u-picker :show="message.gonghuosShow" :columns="columnsghs" title="选择供货商" @cancel="ghsconfirm" @confirm="ghsconfirm"
			keyName="name"></u-picker>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		props:{
			message:{}
		},
		name:"selectGonghuos",
		data() {
			return {
				columnsghs:[],
			};
		},
		mounted() {
			httpRequest.request('appapi/manage/supplier/all', 'POST', {
				group:this.message.value
			}, false, false, true).then(res => {
				this.columnsghs.push(res.data)
			})
		},
		methods:{
			ghsconfirm(e){
				this.$emit("gonghuosSure", e);
			}	
		}
	}
</script>

<style>

</style>